﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterHome.Master" AutoEventWireup="true" CodeBehind="Cart.aspx.cs" Inherits="EC21_EDiamond.Cart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="review-messages"> </div>
                <div class="cart">
                    <div class="page-title title-buttons" style="padding-top:10px; padding-left:10px;">
                        <h1>Gi&#7887; h&agrave;ng</h1>
                        <ul class="checkout-types">
                            <li>    <button type="button" title="Ti&#7871;n h&agrave;nh &#273;&#7863;t h&agrave;ng" class="button btn-checkout" onclick="window.location='http://shopping.pnj.com.vn/checkout/onepage/';"><span><span>Ti&#7871;n h&agrave;nh &#273;&#7863;t h&agrave;ng</span></span></button>
                            </li>
                        </ul>
                    </div>
                    
                        <fieldset>
                            <table id="shopping-cart-table" class="data-table cart-table">
                                <col width="1" />
                                <col width="1" />
                                <col />
                                <col width="1" />
                                <col width="1" />
                                <col width="1" />  
                                <thead>
                                    <tr>
                                        <th rowspan="1" class="a-center">&nbsp;</th>
                                        <th rowspan="1">&nbsp;</th>
                                        <th rowspan="1"><span class="nobr">Tên sản phẩm</span></th>
                                        <th class="a-center" colspan="1"><span class="nobr">Đơn giá</span></th>
                                        <th rowspan="1" class="a-center">S&#7889; l&#432;&#7907;ng</th>
                                        <th class="a-center" colspan="1">Tổng tiền</th>
                                    </tr>
                                </thead>
                                <tfoot>
                                    <tr>
                                        <td colspan="6" class="a-right">
                                            <asp:Button Style="background: linear-gradient(#005A98, #002745) repeat scroll 0 0 rgba(0, 0, 0, 0);border: 0 none;border-radius: 5px;color: #FFFFFF;cursor: pointer;margin: 0;padding: 0;position: relative;text-decoration: none;width: auto;
    z-index: 2; padding:5px;" ID="btnTieptuc" runat="server" class="button btn-continue" Text="Tiếp tục mua hàng" OnClick="btnTieptuc_Click" />
                                            <asp:Button Style="background: linear-gradient(#005A98, #002745) repeat scroll 0 0 rgba(0, 0, 0, 0);border: 0 none;border-radius: 5px;color: #FFFFFF;cursor: pointer;margin: 0;padding: 0;position: relative;text-decoration: none;width: auto;
    z-index: 2; padding:5px;" ID="btnCapNhap" runat="server" class="button btn-update" Text="Cập Nhập giỏ hàng" OnClick="btnCapNhap_Click" />
                                        </td>
                                    </tr>
                                </tfoot>
                                <tbody>
                                <asp:Repeater ID="rpDsSpGioHang" runat="server" OnItemCommand="rpDsSpGioHang_ItemCommand">
                                    <ItemTemplate>
                                        <tr>
                                            <td class="a-center">
                                                <a href="./ProductDetail.aspx?remove=<%#Eval("MaSP")%>"class="btn-remove2" title="Lo&#7841;i b&#7887; m&#7863;t h&agrave;ng" >Lo&#7841;i b&#7887; m&#7863;t h&agrave;ng</a></td>
                                            <td><a href="./ProductDetail.aspx?id=" title="<%#Eval("TenSP")%>"><img src="<%#Eval("HinhAnh")%>" width="75" height="75" alt="Mề đay" /></a></td>
                                            <td>
                                                <h2 class="product-name"><asp:Label Visible="false" ID="lbMaSP" runat="server" Text='<%#Eval("MaSP")%>'></asp:Label>
                                                    <a href="./ProductDetail.aspx?id"><%#Eval("TenSP")%></a>
                                                </h2>
                                            </td>
                                            <td class="a-right">
                                                <span class="cart-price">
                                                    <asp:Label class="price" ID="lbGia" runat="server" Text='<%#Eval("Gia", "{0:0,00} VNĐ")%>'></asp:Label>           
                                                </span>

                                            </td>
                                            <td class="a-center">
                                            <asp:TextBox ID="txtSL" runat="server" size="4" title="Số Lượng" class="input-text qty" maxlength="12" Text='<%#Eval("SoLuong")%>'></asp:TextBox>
                                            </td>
                                            <td class="a-right">
                                            <span class="cart-price">
                                                <asp:Label ID="lbTongGia" class="price" runat="server" Text='<%#Eval("TongTien", "{0:0,00} VNĐ")%>'></asp:Label>         
                                            </span>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                            </table>
                            <script type="text/javascript">decorateTable('shopping-cart-table')</script>
                        </fieldset>
                    
                    <div class="cart-collaterals">
                        <div class="col2-set">
                            <div class="col-1">
                                            </div>
                            <div class="col-2">
                                                            </div>
                        </div>
                        <div class="totals">
                            <table id="shopping-cart-totals-table">
                                <col />
                                <col width="1" />
                                <tfoot>
                                    <tr>
                                        <td style="" class="a-right" colspan="1">
                                            <strong>Tổng tiền</strong>
                                        </td>
                                        <td style="" class="a-right">
                                            <strong><span class="price"><asp:Label ID="lbtTotal1" runat="server" Text=""></asp:Label></span></strong>
                                        </td>
                                    </tr>
                                </tfoot>
                                <tbody>
                                    <tr>
                                        <td style="" class="a-right" colspan="1">Tổng cộng    </td>
                                        <td style="" class="a-right">
                                            <span class="price"><asp:Label ID="lbtTotal2" runat="server" Text=""></asp:Label></span>    </td> 
                                    </tr>
                                    <tr>
                                        <td style ="" class="a-right" colspan="1">Phí bảo hiểm là  %</td>
                                        <td style ="" class="a-right">0 VNĐ</td>   
                                    </tr>
                                </tbody>
                            </table>
                            <ul class="checkout-types">
                                <li> 
                                    <asp:Button Style="background: linear-gradient(#005A98, #002745) repeat scroll 0 0 rgba(0, 0, 0, 0);border: 0 none;border-radius: 5px;color: #FFFFFF;cursor: pointer;margin: 0;padding: 0;position: relative;text-decoration: none;width: auto;
    z-index: 2; padding:5px;" ID="btnCheckOut" runat="server" class="button btn-checkout" Text="Tiến Hành Đặt Hàng" OnClick="btnCheckOut_Click" />
                                </li>
                            </ul>
                        </div>
                    </div>                                                          
                </div>
</asp:Content>
